home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / DATABASE / AMITABLE.ZIP;1 / TABLES.EXE / 9305.TXT < prev    next >
Encoding:
Text File  |  1992-03-19  |  3.7 KB  |  87 lines

  1. TITLE:   Numbering Paragraphs in Tables
  2. PRODUCT: Ami Pro 2.0
  3. DATE:    19-Feb-1992
  4.  
  5. PROBLEM: 
  6.  
  7. Using a numbered list paragraph style does not sequentially number paragraphs 
  8. typed in multiple table cells.  Each paragraph starts with number 1.  Can 
  9. paragraphs automatically be numbered in tables?
  10.  
  11. SOLUTION: 
  12.  
  13. Paragraphs typed in separate table cells can be automatically numbered by 
  14. inserting a sequence power field.  You will need to insert the power field in 
  15. each cell, but an Ami Pro macro can be written to automate this procedure.  In 
  16. Ami Pro Untitled, type the following to create the macro to insert the 
  17. sequence power field:
  18.  
  19.  FUNCTION CELL1()
  20.  FieldAdd("Seq cellone+1  %N1"   )
  21.  END FUNCTION
  22.  
  23. NOTE: The %N1 formatting option sets the numbering style as 1, 2, 3,....  You 
  24. can also use any of the following formatting options: %N2 = I, II, III..., %N3 
  25. = i, ii, iii,..., %N4 = A, B, C,..., and %N5 = a, b, c,....
  26.  
  27. Choose File / Save and specify "Ami Pro Macro" for the File Type option.  
  28. Specify CELL1 as the file name and choose OK.
  29.  
  30. You can create a special column for the numbers in a table.  Make the column 
  31. just wide enough to accommodate the widest number and the amount of space you 
  32. want between the numbers and the paragraph text.  Type the paragraph text in 
  33. the next column to the right.  Playback the macro CELL1 each time you need a 
  34. paragraph number (if you use a mouse, you can assign CELL1 to a custom icon 
  35. and place it on the SmartIcon bar).  See Figure 1 for an example.
  36.  
  37. ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
  38. ≥             Table                  ≥
  39. √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
  40. ≥1 Word wrapped paragraph            ≥
  41. √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
  42. ≥2 Word wrapped paragraph            ≥
  43. √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
  44. ≥3 Word wrapped paragraph            ≥
  45. ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
  46.  Figure 1
  47.  
  48. The power field numbers will be calculated from left to right.  That means if 
  49. the power field is inserted horizontally and vertically, the numbers will be 
  50. sequenced in the first row, then the second row etc.  See Figure 2 for an 
  51. example.
  52.  
  53. ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
  54. ≥             Table                  ≥
  55. √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
  56. ≥1 Word wrapped  ≥2 Word wrapped     ≥
  57. ≥  paragraph     ≥  paragraph        ≥
  58. √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ≈ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
  59. ≥3 Word wrapped  ≥4 Word wrapped     ≥
  60. ≥  paragraph     ≥  paragraph        ≥
  61. ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
  62.  Figure 2
  63.  
  64. If you want to restart paragraph numbering in a table, you will need to create 
  65. a second macro which inserts another sequence power field.  Create as many of 
  66. these macros as you will need to restart numbering in a table.  Use the same 
  67. macro commands as above, but specify a different name for the sequence power 
  68. field (Celltwo instead of Cellone, for example) and give each macro a 
  69. different name.  NOTE: Use text only for the sequence names.  For example, use 
  70. Cellone and Celltwo instead of Cell1 and Cell2.  Playback the second macro 
  71. where you need to restart numbering.  See Figure 3 for an example.  The macro 
  72. that inserts the sequence power field Cellone is used in the first column and 
  73. the macro that inserts the sequence power field Celltwo is used in the third 
  74. column.  NOTE:  You will also need more than one sequence power field if you 
  75. are numbering paragraphs in multiple tables in a file.
  76.  
  77. ⁄ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒø
  78. ≥             Table                  ≥
  79. √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¬ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
  80. ≥1 Word wrapped  ≥1 Word wrapped     ≥
  81. ≥  paragraph     ≥  paragraph        ≥
  82. √ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ≈ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¥
  83. ≥2 Word wrapped  ≥2 Word wrapped     ≥
  84. ≥  paragraph     ≥  paragraph        ≥
  85. ¿ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ¡ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒŸ
  86.  Figure 3
  87.